package service;

import java.util.List;

import pojo.Alarm;
import pojo.Car;
import pojo.Distance;
import pojo.PageBean;
import pojo.User;

public interface UserService {
	public User login(User user);
	public boolean register(User user);    
	public boolean bind(Car car);
	public boolean dele(String username);
	public List<User> queryList(String binder);
	//在列表中展示出来被绑定的车辆,根据binder
	public List<Car> queryCarList(String binder);
	public Car update(Car car);

	//查询报警信息
	public List<Alarm> queryAllAlarm(String username);
	//public List<Alarm> queryAllAlarm(Alarm alarm);
	public List<Distance> queryDistance(String entity_name,int year,int mon);
	
	public List getAlarmList(String page,String rows) throws Exception;//根据第几页获取，每页几行获取数据   
	public int getAlarmTotal() throws Exception;//统计一共有多少数据  


}
